package com.webamc.dao.db4o;

import com.webamc.dao.IOrderDao;
import com.webamc.model.Order;
import com.webamc.util.DB4OUtil;
import org.apache.log4j.Logger;

import java.util.List;

/**
 * Created by Prash.
 * Order: Choti
 * Date: Mar 11, 2009
 * Time: 11:41:42 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class OrderDao implements IOrderDao {
    private Logger log = Logger.getLogger(OrderDao.class);

    public boolean create(Order c) {
        log.info("Inside ordercreate - " + c.getOrderId());
        return DB4OUtil.insert(c);
    }

    public boolean update(Order c) {
        log.info("Inside order update - " + c.getOrderId());
        return DB4OUtil.update(c);
    }

    public List<Order> search(Order dummy) {
        return DB4OUtil.select(dummy);
    }
}


